import type { R, P } from '@/type/base'
import shopList from '@/mock/shoplist.json'
import { request } from '@/utils/request'

export const getAreaTree = async (): R<Object> => {
  return await request({
    path: '/base/buyer/get/area/tree',
    method: 'GET',
  })
}

export const sendOneMessage = async (data: Object): R<Object> => {
  return await request({
    path: '/message/one',
    method: 'POST',
    data,
  })
}
